Repository navigation
fix(reports): a report keeps the ISSN it went live with, and its invoice names it - #1689
Merged
Merged
Conversation
An ISSN a series gets later no longer reaches a report already published: its page, its saved copies, the search feed and any later registration (a correction, an embargo ending) read the ISSN kept on the report when it went live. migrations/reportIssn gives reports already live the one their series has now.
Stripe's invoice gets a Report field at its head on every way of paying. Stripe's checkout is told to add it to the invoice it makes. An invoice Autumn makes itself, for a saved card or the account's credit, takes it from the customer's default field, set for that charge under the purchase lock and taken off after, since a paid invoice takes no text.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ce's report field holds the purchase lock and is asked again while it fails, and a request to Stripe is given up after 20 seconds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two rulings from the owner after the fourth walk of workspace publishing (OS-37). One commit each.
A report keeps the ISSN it went live with
An ISSN a series gets later must not reach a report already published. Before this, every report read its series' current ISSN, so a later ISSN showed on the report's page, in saved copies and in the search feed at once, and went to Crossref and Zenodo with the next correction, retry or embargo ending.
reports.issnis written when the report goes live and read first byseriesOf. A report not yet live still reads the series' ISSN as it is.Migration. Run once per deployment right after its Convex push, and before a series is given an ISSN:
It gives each report already live the ISSN its series has now, which is what its page shows today. Safe to run again.
The invoice for a report names it
Stripe's invoice gets a
Reportfield at its head with the report's key, on every way of paying. A paid invoice refuses changes to its text (tested on the sandbox), so the field has to be there when the invoice is made.invoice_creation.invoice_data). Autumn passes it through, tested on the sandbox.The sandbox Stripe product behind the checkout line is renamed from "Publishing on Openscholar Reports" to "Publishing", so a workspace with its own series isn't billed under ours. That is data, not code.
Checks
npx tsc --noEmitnpx vitest run convex/reports lib/reports convex/lib convex/migrations convex/workspaces convex/billingnpm run check:convex-rules,check:ui-rules,check:module-weightReport: R100725.Out of scope